package cn.tx.service.Impl;

import cn.tx.dao.Grade1Dao;
import cn.tx.model.Grade1;
import cn.tx.service.Grade1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class Grade1ServiceImpl implements Grade1Service {

    @Autowired
    private Grade1Dao grade1Dao;

    @Override
    public Grade1 findByUserName(String username) {
        return grade1Dao.findByUserName(username);
    }

    @Override
    public int addGrade1(Grade1 grade1) {
        return grade1Dao.addGrade1(grade1);
    }

    @Override
    public List<Grade1> findList(Map<String, Object> querymap) {
        return grade1Dao.findList(querymap);
    }

    @Override
    public List<Grade1> findAll() {
        return grade1Dao.findAll();
    }

    @Override
    public int findTotal(Map<String, Object> querymap) {
        return grade1Dao.findTotal(querymap);
    }



    @Override
    public int UpdateGrade1ById(Grade1 grade1) {
        return grade1Dao.UpdateGrade1ById(grade1);
    }

    @Override
    public int delete(String ids) {
        return grade1Dao.delete(ids);
    }

}
